ci: fix setup, again
authorFelix Krull <f_krull@gmx.de>
Thu, 31 Oct 2019 13:09:12 +0000 (14:09 +0100)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:55 +0000 (12:53 -0400)
rust-bindings/rust/.gitlab-ci.yml

index 176fdb7487faed03e835bcab028b85627e1706e6..5434cb58a677619381f19ff131440c64006d8216 100644 (file)
@@ -9,9 +9,7 @@ variables:
   OSTREE_VERSION: v2019_3
 
 before_script:
-# only on the Fedora images
-- if which dnf > /dev/null; then dnf install -y cargo rust clippy rustfmt git make ostree-devel; fi
-# always
+- dnf install -y cargo rust clippy rustfmt git make ostree-devel
 - curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
 
 cache:
@@ -56,6 +54,8 @@ docs:
       --extern-html-root-url gio_sys=https://gtk-rs.org/docs
       --extern-html-root-url glib=https://gtk-rs.org/docs
       --extern-html-root-url gio=https://gtk-rs.org/docs
+  before_script:
+  - curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
   script:
   - make merge-lgpl-docs
   - cargo rustdoc --verbose --package ostree-sys --features dox -- ${RUSTDOC_OPTS}